/*
 * Copyright Hundsun Technologies Inc. All Rights Reserved.
 */

package selector

import (
	"context"

	"hundsun.com/hsl/hschain/common/config"
	"hundsun.com/hsl/hschain/common/log/logging"
	"hundsun.com/hsl/hschain/module"
)

// NewSelector 新建一个selector
func NewSelector() *RaftSelector {
	m := &RaftSelector{}
	return m
}

// RaftSelector raft selector
type RaftSelector struct {
	module.Adapter
}

// Start 启动
func (m *RaftSelector) Start(ctx context.Context, cfg *config.ModuleConfig, log logging.Log) error {
	m.Log.Info("selector[type=raft]")
	return nil
}

// CountVotes 统计选票
func (m *RaftSelector) CountVotes() {

}

// Vote 投票
func (m *RaftSelector) Vote() {

}
